import { PageConfig } from '@/components/schema-form-render/meta';
import { api } from '@/services';
import { getValidateMessage } from '@/utils/validate-rules/message';

export const searchData: PageConfig = {
  labelCol: 6,
  layout: 3,
  pageDatas: [
    {
      key: 'code',
      label: getValidateMessage('single-ep-modal.code', true),
      type: 'search_column',
      props: {
        sequence: 10
      },
    },
    {
      
      key: 'name',
      label: getValidateMessage('single-ep-modal.name', true),
      type: 'search_column',
      props: {
        sequence: 20
      },
    },
    {
      key: 'deptCode',
      label: getValidateMessage('single-ep-modal.deptCode', true),
      type: 'search_column',
      props: {
        sequence: 30,
        inputValueComponentType: 'BIZ_TREE_SELECT',
        attributes: {
          api: {
            url : '/sym/org/findListByParentCode',
            params: {
              parentCode: '',
              type: 'DEPARTMENT',
            },
            type: 'GET',
          },
        },
        required: '1',
      },
    },
  ],
  
};
 
